.class public Lcom/xingbook/ting/fragment/TingPlayListFragment;
.super Lcom/xingbook/ting/fragment/TingPlayFlipFragment;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field private a:Landroid/widget/ListView;

.field private b:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;


# direct methods
.method public constructor <init>()V
    .locals 2

    invoke-direct {p0}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;-><init>()V

    new-instance v0, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    new-instance v1, Lcom/xingbook/ting/fragment/s;

    invoke-direct {v1, p0}, Lcom/xingbook/ting/fragment/s;-><init>(Lcom/xingbook/ting/fragment/TingPlayListFragment;)V

    invoke-direct {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;-><init>(Lcom/xingbook/ting/receiver/d;)V

    iput-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->b:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    return-void
.end method

.method static synthetic a(Lcom/xingbook/ting/fragment/TingPlayListFragment;)Landroid/widget/ListView;
    .locals 1

    iget-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->a:Landroid/widget/ListView;

    return-object v0
.end method

.method private a(Landroid/view/View;)V
    .locals 1

    const v0, 0x7f0a022d

    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ListView;

    iput-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->a:Landroid/widget/ListView;

    iget-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->a:Landroid/widget/ListView;

    invoke-virtual {v0, p0}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public b()I
    .locals 1

    const/4 v0, 0x0

    return v0
.end method

.method public c()Ljava/lang/String;
    .locals 2

    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "\u97f3\u9891\u64ad\u653e-\u5217\u8868"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public onAttach(Landroid/app/Activity;)V
    .locals 0

    invoke-super {p0, p1}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;->onAttach(Landroid/app/Activity;)V

    return-void
.end method

.method public onCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;
    .locals 2

    const v0, 0x7f030044

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->a(Landroid/view/View;)V

    return-object v0
.end method

.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 2

    new-instance v0, Landroid/content/Intent;

    const-string v1, "com.111.xingpark.ting.play.musicservice.action.ACTION_SELECTED"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    const-string v1, "index"

    invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/support/v4/app/FragmentActivity;->startService(Landroid/content/Intent;)Landroid/content/ComponentName;

    return-void
.end method

.method public onPause()V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->b:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;->b(Landroid/content/Context;)V

    invoke-super {p0}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;->onPause()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onPause(Landroid/support/v4/app/Fragment;)V

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->b(Ljava/lang/String;)V

    return-void
.end method

.method public onResume()V
    .locals 4

    :try_start_0
    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v0

    check-cast v0, Lcom/xingbook/ting/activity/TingPlayAct;

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-static {v1}, Lcom/xingbook/ting/play/j;->a(Landroid/content/Context;)Lcom/xingbook/ting/play/j;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/ting/play/j;->c()Lcom/xingbook/audio/b/a;

    move-result-object v1

    invoke-virtual {v1}, Lcom/xingbook/audio/b/a;->u()Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    const/4 v3, 0x0

    invoke-virtual {v0, v1, v2, v3}, Lcom/xingbook/ting/activity/TingPlayAct;->a(Ljava/lang/String;ZZ)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    iget-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->b:Lcom/xingbook/ting/receiver/TingRetrieverReceiver;

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/xingbook/ting/receiver/TingRetrieverReceiver;->a(Landroid/content/Context;)V

    iget-object v0, p0, Lcom/xingbook/ting/fragment/TingPlayListFragment;->a:Landroid/widget/ListView;

    new-instance v1, Lcom/xingbook/ting/fragment/t;

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->getActivity()Landroid/support/v4/app/FragmentActivity;

    move-result-object v2

    invoke-direct {v1, p0, v2}, Lcom/xingbook/ting/fragment/t;-><init>(Lcom/xingbook/ting/fragment/TingPlayListFragment;Landroid/content/Context;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    invoke-super {p0}, Lcom/xingbook/ting/fragment/TingPlayFlipFragment;->onResume()V

    invoke-static {p0}, Lcom/baidu/mobstat/StatService;->onResume(Landroid/support/v4/app/Fragment;)V

    invoke-virtual {p0}, Lcom/xingbook/ting/fragment/TingPlayListFragment;->d()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/a/a/g;->a(Ljava/lang/String;)V

    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/lang/NullPointerException;->printStackTrace()V

    goto :goto_0
.end method
